package com.dingreading.cloud.admin.service;

import com.dingreading.cloud.admin.entity.SubjectsFiles;
import com.dingreading.cloud.common.base.R;
import com.mybatisflex.core.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 * 备课系统文件管理 服务层。
 *
 * @author EDY
 * @since 2025-10-22
 */
public interface SubjectsFilesService extends IService<SubjectsFiles> {

    R<Object> getBySubjectId(HttpServletRequest request, String headStaffUid, String headStaffName, Long subjectId);

    R<Object> uploadFile(String headStaffUid, String headStaffName, Long subjectId, String name, String fileUrl, Integer fileType, Long id);


    R<Object> getBean(String headStaffUid, String headStaffName, Long id);

    R<Object> updateEnabled(String headStaffUid, String headStaffName, Long id, Integer enabled);

    R<Object> videoCopySubjectFile();

    R<Object> subjectFileSetViewType();

    SubjectsFiles getLtShowOrder(Long subjectsId, Integer showOrder);

    SubjectsFiles getGtShowOrder(Long subjectsId, Integer showOrder);

    void updateShowOrder(Long id, Integer showOrder);

    R<Object> setShowOrder();
}
